package com.letsiot.applications.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.letsiot.applications.entity.SysRolePermission;

@Repository
public interface SysRolePermissionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysRolePermission record);

    int insertSelective(SysRolePermission entity);

    SysRolePermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRolePermission record);

    int updateByPrimaryKey(SysRolePermission record);

    List<SysRolePermission> getAll();

    List<SysRolePermission> getByRoleId(Long roleId);
}